import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;






public class DailyMirrorHomePage {
@FindBy(how = How.LINK_TEXT,using = "Euro 2012")
private WebElement hotTopicLink;

private WebDriver driver;
public  DailyMirrorHomePage(WebDriver driver) {
	this.driver = driver;
}

public Euro2012 clickHotTopicLink(WebDriver driver){
	hotTopicLink.click();
	return PageFactory.initElements(driver, Euro2012.class);

}

//public static DailyMirrorHomePage navigateTo(WebDriver driver) {
	//driver.get("http://www.amazon.co.uk/");
	//return PageFactory.initElements(driver, DailyMirrorHomePage.class);
//}

}
